package pile.customer.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-01
 */
@Getter
@Setter
@TableName("sys_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户ID")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty("用户手机号")
    private String phone;

    @ApiModelProperty("最后一次信息")
    private String lastMessage;

    @ApiModelProperty("发最后消息的手机号")
    private String lastMessagePhone;

    @ApiModelProperty("发最后消息的时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date lastMessageTime;

    @ApiModelProperty("是否删除，1是0否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty("是否在线 1在线 2不在线")
    private Integer isOnLine;

    @ApiModelProperty("是否回复 1未读  2已读不回复  3已读已回复")
    private Integer isReply;

    //渠道
    @ApiModelProperty("渠道")
    private Integer channel;

    //openid
    @ApiModelProperty("openId")
    private String openId;


    @ApiModelProperty("未接入数量")
    private Integer noAccessNum;

    @ApiModelProperty("发最后消息的类型 1用户 2客服")
    private Integer lastMessageType;

    //是否显示
    @ApiModelProperty("是否显示  1 显示  2 不显示")
    private Integer isDisplay;

    //客服账户
    @ApiModelProperty("客服账户")
    private String customerServiceAccount;

    //未读消息数量
    @ApiModelProperty("未读消息数量")
    private Integer unreadQuantity;

    //是否自动回复
    @ApiModelProperty("是否自动回复")
    private Integer automaticReply;

    //信息类型
    @ApiModelProperty("信息类型")
    private Integer messageType;
}
